package jhsys.mc.customviews;

import android.app.Dialog;
import android.content.Context;
import android.util.Log;
import android.view.KeyEvent;


public class BaseDialog extends Dialog
{
    
    public BaseDialog(Context context, int theme)
    {
        super(context, theme);

    }
    
    public BaseDialog(Context context)
    {
        super(context);

    }
    
    public boolean onKeyDown(int keyCode, KeyEvent event)
    {
        switch (keyCode)
        {
      
            case KeyEvent.KEYCODE_BACK:
            	Log.i("onKeyDown", "KEYCODE_BACK");
                return true;
            case KeyEvent.KEYCODE_SEARCH:
            	Log.i("onKeyDown", "KEYCODE_SEARCH");
                return true;
            default:
                break;
        }
        
        return super.onKeyDown(keyCode, event);
    }
    
    
    public void refreshDialog(){
    	
    }
}

